package com.jeesite.modules.stock.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.jeesite.modules.stock.dao.mapper.StockInformationMapper;
import com.jeesite.modules.stock.entity.StockInfomationEntity;

@Component
public class StockInformationDao {
	
	@Autowired
	private StockInformationMapper mapper;
	
	public StockInfomationEntity findByStockCode(String stockCode) {
		StockInfomationEntity entity = new StockInfomationEntity();
		entity.setStockCode(stockCode);
		return mapper.getByEntity(entity);
	}

}
